package com.br.aiops.api;

import com.google.common.collect.Maps;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 列出所有api
 */
@RestController
@RequestMapping("/api")
public class ApiController {

    @GetMapping
    public Map<String, String> apis() {
        Map<String, String> map = Maps.newHashMap();
        map.put("rule", "/api/rule");
        map.put("counter", "/api/counter");
        map.put("schedule", "/api/schedule");
        map.put("ladder", "/api/schedule/ladder");
        map.put("es config", "/api/es/buildMessage");
        map.put("es build message", "/api/es/buildMessage");
        return map;
    }
}
